package com.boarsoft.boar.code.bean.biz;

import java.util.List;

import com.boarsoft.boar.code.entity.BeanMapping;

public interface BeanMappingBiz {

	String save(BeanMapping beanMapping);

	/**
	 * 修改映射配置：/code/mapping/update.do
	 */
	void update(BeanMapping beanMapping);

	/**
	 * 启停映射配置：/code/mapping/toggle.do
	 */
	void toggle(String id, boolean enable);

	String getBeanMappingId(BeanMapping beanMapping);

	/**
	 * 删除映射配置：/code/mapping/delete.do
	 */
	void delete(String id);

	List<BeanMapping> listFromCodeId(String codeId, String key);

	List<BeanMapping> list(String id, String key);

	void deleteByType(String code);
}
